//导入vue得到构造函数Vue
import Vue from 'vue'
//导入vant中的组件(项目中用到的组件都在这个文件中导入)

import { NavBar, Field, Form, Button, Toast, Tabbar, TabbarItem } from 'vant'
//使用组件(上面到什么这里就用什么)
Vue.use(NavBar)
Vue.use(Field)
Vue.use(Form)
Vue.use(Button)
Vue.use(Toast)
Vue.use(Tabbar)
Vue.use(TabbarItem)
/*
    全局配置
*/

/*
    用户模块
*/

import {
  Image as VanImage,
  Tag,
  Col,
  Row,
  Icon,
  Cell,
  CellGroup,
  Dialog,
  Popup
} from 'vant'
Vue.use(VanImage)
Vue.use(Tag)
Vue.use(Col)
Vue.use(Row)
Vue.use(Icon)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Dialog)
Vue.use(Popup)

/*
    编辑
*/
import { DatetimePicker, Uploader } from 'vant'

Vue.use(DatetimePicker)
Vue.use(Uploader)

/*
    首页
*/
import {
  Tab,
  Tabs,
  List,
  PullRefresh,
  Grid,
  GridItem,
  lazyload,
  Search
} from 'vant'

Vue.use(Tab)
Vue.use(Tabs)
Vue.use(List)
Vue.use(PullRefresh)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(lazyload)
Vue.use(Search)
